package com.tpu.actionclasses;

import org.apache.tapestry.html.BasePage;

public abstract class AuthenticatedPage extends BasePage {

   /* @InjectStateFlag("tapestryUser")
    public abstract boolean getTapestryUserExists();

    @InjectState("tapestryUser")
    public abstract TapestryUser getTapestryUser();
    public abstract void setTapestryUser(TapestryUser tapestryUser);

    *//**
     * Return true if the current session belongs to a logged
     * in user.
     * @author Alex
     *//*
    public boolean getLoggedIn() {
        if (getTapestryUserExists() && getTapestryUser().isLoggedIn())
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    *//**
     * Store user in the httpsession as logged in.
     * @author Alex
     *//*
    public void setLoggedIn(Object user) {
        getTapestryUser().setUser(user);
        getTapestryUser().setLoggedIn(true);
    }*/
}